package com.dragon.modules.yuegou.mapper.coupon;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.coupon.ParkApplyEntity;
import com.dragon.modules.yuegou.model.coupon.ParkApply;
import com.dragon.modules.yuegou.query.coupon.ApplyCouponQuery;
import com.dragon.modules.yuegou.request.mchapp.ParkApplyRequest;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
/**
 * 停车券券申请表 Mapper接口
 *
 * @author pbuilder generated
 * @date 2020-08-31 16:01:18
 * @version 2.0
 */
@Component("coupParkApplyMapper")
public interface ParkApplyMapper extends BaseMapper<ParkApplyEntity> {

    /**
     * 集团版查询商户申请停车券分页列表
     * @param page
     * @param query
     * @return
     */
    IPage<ParkApply> searchApply(IPage page, @Param("query") ApplyCouponQuery query);

    /**
     * 悦商惠APP-商户停车券查询
     * @param page
     * @param query
     * @return
     */
    IPage<ParkApply> selectAppyList(IPage page, @Param("busdId") String busdId, @Param("query") ParkApplyRequest query);

    /**
     * 集团版导出商户申请停车券分页列表
     * @param query
     * @return
     */
    List<ParkApply> searchApply(@Param("query") ApplyCouponQuery query);

}
